#include<time.h>
#include<math.h>
#include<stdio.h>
#define ITERATIONS 99999999

int main()
{
    long i,j;
	
	double val=((double)3.141529)/4;
	
	time_t t1,t2;
	
	
	time(&t1);
	for(i=0;i<ITERATIONS;i++)
	{
	    val=sin(val);
		
	}
	time(&t2);
	printf("\nTime Taken for sin : %ld\n",t2-t1);
	
	
	time(&t1);
	for(i=0;i<ITERATIONS;i++)
	{
	    val=cos(val);
		
	}
	time(&t2);
	printf("\nTime Taken for cos : %ld\n",t2-t1);
	
	
	
	time(&t1);
	for(i=0;i<ITERATIONS;i++)
	{
	    val=exp(val);
		
	}
	time(&t2);
	printf("\nTime Taken for exp : %ld\n",t2-t1);
	
	time(&t1);
	for(i=0;i<ITERATIONS;i++)
	{
	    val=log(val);
		
	}
	time(&t2);
	printf("\nTime Taken for log base e : %ld\n",t2-t1);
	
	
	time(&t1);
	for(i=0;i<ITERATIONS;i++)
	{
	    val=log10(val);
		
	}
	time(&t2);
	printf("\nTime Taken for log base 10 : %ld\n",t2-t1);
	
		
	time(&t1);
	for(i=0;i<ITERATIONS;i++)
	{
	    val=pow(9,val);
		
	}
	time(&t2);
	printf("\nTime Taken for power : %ld\n",t2-t1);
	
	
	time(&t1);
	for(i=0;i<ITERATIONS;i++)
	{
	    val=sqrt(9);
		
	}
	time(&t2);
	printf("\nTime Taken for sqrt : %ld\n",t2-t1);
	
	
	time(&t1);
	for(i=0;i<ITERATIONS;i++)
	{
	    val=cbrt(9);
		
	}
	time(&t2);
	printf("\nTime Taken for cube root : %ld\n",t2-t1);
	
	return 0;
	
}


	
